void handle_test_async_msg_internal(unsigned char* request_payload,
  unsigned char* reply_payload) {
    test_sync_msg_req request;
    test_sync_msg_rpl reply;
    handle_test_async_msg_pld2req(request_payload, &request);
    handle_test_async_msg(&request, &reply);
    handle_test_async_msg_rpl2pld(reply_payload, &reply);
}

void handle_test_async_msg_pld2req(unsigned char* payload, test_sync_msg_req* request) {
    memcpy(request, payload, sizeof(request));
    request->uint16_arg = nbo2hbo16(request->uint16_arg);
    request->uint32_arg = nbo2hbo32(request->uint32_arg);
}

void handle_test_async_msg_req2pld(unsigned char* payload, test_sync_msg_rpl* reply) {
    memcpy(payload, reply, sizeof(reply));
    reply->uint16_arg = hbo2nbo16(request->uint16_arg);
    reply->uint32_arg = hbo2nbo32(request->uint32_arg);
}

void handle_test_sync_msg_internal() {

}
